package com.ikun.common.validate.validator.impl;

import com.ikun.common.validate.validator.Validate;
import sun.reflect.annotation.AnnotationType;

import java.lang.reflect.Field;
import java.util.Objects;

/**
 * @ClassName NotNullValidator
 * @Description: 空参校验器
 * @CreateDate: 2024/4/20 13:50
 */
public class NotNullValidator implements Validate {
    @Override
    public AnnotationType getAnnotationType() {
        return null;
    }

    @Override
    public boolean validate(Field field,Object object) {
        return Objects.nonNull(object);
    }
}
